// 地址
import request from '../index.js';
import { stringify } from 'qs';


// 地址列表
export const addressList = () => {
	return request({
		url: `/api/member.Address/list`,
		method: 'get'
	})
}

// 地区列表 城市
export const RegionList = () => {
	return request({
		url: `/api/setting.Region/list`,
		method: 'get'
	})
}

// 地区树形
export const addressTree = () => {
	return request({
		url: `/api/setting.Region/tree`,
		method: 'get'
	})
}


// 地区信息
export const addressInfo = () => {
	return request({
		url: `/api/setting.Region/info`,
		method: 'get'
	})
}

// 添加地址
export const addregion = (data) => {
	return request({
		url: `/api/member.Address/add`,
		method: 'post',
		data
	})
}

// 编辑地址
export const editregion = (data) => {
	return request({
		url: `/api/member.Address/edit`,
		method: 'post',
		data
	})
}

// 删除地址
export const deleteregion = (data) => {
	return request({
		url: `/api/member.Address/del`,
		method: 'post',
		data
	})
}

// 默认地址
export const isDefalut = (data) => {
	return request({
		url: `/api/member.Address/isDefalut`,
		method: 'post',
		data
	})
}




